<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>AdminLTE 3 | Data Tables</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta name="viewport" content="width=device-width, initial-scale=1">

</head>
<body class="hold-transition sidebar-mini">
<div class="wrapper">
    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-12">
                <div class="card">
                    <div class="card-header">
                        <button id="add" class="btn btn-primary btn-sm">添加利率</button>
                    </div>
                    <!-- /.card-header -->
                    <div class="card-body">
                        <table id="example2" class="table table-bordered table-hover">
                        </table>
                    </div>
                    <!-- /.card-body -->
                </div>
            </div>
            <!-- /.col -->
        </div>
        <!-- /.row -->
    </section>
    <!-- /.content -->
    <footer class="main-footer text-center" style="margin-left: 0%;">
        <div class="d-none d-sm-block">
            <b>版本:</b> 1.0
        </div>
        <!-- 按钮触发模态框 -->
        <strong>Copyright &copy; 2014-2018 <a href="http://adminlte.io">咸阳恒源汽贸有限公司</a>.</strong>保留所有权.
    </footer>

    <!-- Control Sidebar -->
    <aside class="control-sidebar control-sidebar-dark">
        <!-- Control sidebar content goes here -->
    </aside>
    <!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->


<!-- 模态框（Modal） -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" style="max-width: 1000px;height: 400px">
        <div class="modal-content">
            <div class="modal-header">

                <h4 class="modal-title" id="myModalLabel">利率信息</h4>
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            </div>
            <div class="modal-body">
                <!-- form start -->
                <form role="form" action="">
                    <div class="row mt-3">
                        <div class="col-lg-2">
                            <div class="text-center mt-2"><code>*</code>&nbsp;&nbsp;利率编号</div>
                        </div>
                        <div class="col-lg-9 form-group">
                            <input name="code" type="text" class="form-control" id="pj_id" placeholder="p00001"
                                   disabled>
                            <input name="rid" type="text" class="form-control" id="rid" placeholder=""
                                   style="display: none">
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-2">
                            <div class="text-center mt-2"><code>*</code>利率名称</div>
                        </div>
                        <div class="col-lg-9 form-group">
                            <input name="rname" type="text" class="form-control" id="rname" value="">
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-2">
                            <div class="text-center mt-2"><code>*</code>&nbsp;&nbsp;利率</div>
                        </div>
                        <div class="col-lg-9 form-group">
                            <input name="rate" type="text" class="form-control" id="rate" value="">
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-2">
                            <div class="text-center mt-2"><code>*</code>&nbsp;&nbsp;是否启用</div>
                        </div>
                        <div class="col-lg-9 form-group">
                            <select id="isUse" name="isUse" class="form-control select2" style="width: 100%;">
                                <option value="1">启用</option>
                                <option value="0">关闭</option>
                            </select>
                        </div>
                    </div>

                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button id="save" type="button" class="btn btn-primary">保存</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<!--点击删除按钮后弹出的页面-->
<div class="modal fade" id="deleteModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" style="height: 200px">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel">
                    提示
                </h4>
                <!--<button type="button" class="close" data-dismiss="modal" aria-hidden="true">-->
                <!--&times;-->
                <!--</button> -->
            </div>
            <div class="modal-body">
                你确定要删除该条信息吗？
                <input id="del_id" style="display: none"/>
            </div>
            <div class="modal-footer">
                <button id="delBtn" type="submit" class="btn btn-primary" value="submit">确定</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
</body>
<script src="./dist/js/part_rate.js"></script>
</html>
